<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .father{
            background-color: pink;
            width: 500px;
            height: 500px;
            margin: 0 auto;
            position: relative;
        }
        .dd{
            width: 80px;
            height: 100px;
            background-color:orange;
            margin: 0 auto;
            line-height: 100px;
            text-align: center;
        }
        .son{
            width: 80px;
            height: 20px;
            background-color:orange;
            /* margin: 0 auto; */
            position: absolute;
            top: 50%;
            left: 50%;
            margin-left: -40px;
            margin-top: -10px;
        }
    </style>
</head>
<body>
    <div class="father">
        <div class="son">

        </div>
        <div class="dd">
            111
        </div>
    </div>
</body>
</html>